package com.health.form;

import java.util.Date;

import org.apache.struts.action.ActionForm;

/**
 * 
 */
public class BloodPressureForm extends ActionForm
{
	/**
	 * serialVersionUID
	 */
	private static final long	serialVersionUID	= 1L;
	
	
	private String	id;
	private String	userId;		// relate user's id
	private Integer	low;
	private Integer	high;
	private Date	examTime;		// the time user examing
	private String	remarks;

	// additional property to make a complete "examTime" with the HH:mm:ss
	private String	additionalTime;

	// query condition
	private Integer	low1;			// as a query condition
	private Integer	low2;			//
	private Integer	high1;			//
	private Integer	high2;			//
	private Date	examTimeStart;	// examTime scope
	private Date	examTimeEnd;	// examTime scope
	private String	userName;		// relate to "_user"'s "name"
	
	//about paging
	private Integer	start;
	private Integer	limit;

	/**
	 * constructors
	 */
	public BloodPressureForm()
	{

	}

	/**
	 * constructors
	 */
	public BloodPressureForm(String id, String userId, Integer low,
			Integer high, Date examTime, String remarks)
	{
		this.id = id;
		this.userId = userId;
		this.low = low;
		this.high = high;
		this.examTime = examTime;
		this.remarks = remarks;
	}

	@Override
	public String toString()
	{
		return id + " " + userId + " " + low + " " + high + " " + examTime
				+ " " + remarks + "   userName--" + userName;
	}

	/**
	 * getters and setters
	 */
	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getUserId()
	{
		return userId;
	}

	public void setUserId(String userId)
	{
		this.userId = userId;
	}

	public Integer getLow()
	{
		return low;
	}

	public void setLow(Integer low)
	{
		this.low = low;
	}

	public Integer getHigh()
	{
		return high;
	}

	public void setHigh(Integer high)
	{
		this.high = high;
	}

	public Date getExamTime()
	{
		return examTime;
	}

	public void setExamTime(Date examTime)
	{
		this.examTime = examTime;
	}

	public String getRemarks()
	{
		return remarks;
	}

	public void setRemarks(String remarks)
	{
		this.remarks = remarks;
	}

	public Integer getLow1()
	{
		return low1;
	}

	public void setLow1(Integer low1)
	{
		this.low1 = low1;
	}

	public Integer getLow2()
	{
		return low2;
	}

	public void setLow2(Integer low2)
	{
		this.low2 = low2;
	}

	public Integer getHigh1()
	{
		return high1;
	}

	public void setHigh1(Integer high1)
	{
		this.high1 = high1;
	}

	public Integer getHigh2()
	{
		return high2;
	}

	public void setHigh2(Integer high2)
	{
		this.high2 = high2;
	}

	public Date getExamTimeStart()
	{
		return examTimeStart;
	}

	public void setExamTimeStart(Date examTimeStart)
	{
		this.examTimeStart = examTimeStart;
	}

	public Date getExamTimeEnd()
	{
		return examTimeEnd;
	}

	public void setExamTimeEnd(Date examTimeEnd)
	{
		this.examTimeEnd = examTimeEnd;
	}

	public String getUserName()
	{
		return userName;
	}

	public void setUserName(String userName)
	{
		this.userName = userName;
	}

	public Integer getStart()
	{
		return start;
	}

	public void setStart(Integer start)
	{
		this.start = start;
	}

	public Integer getLimit()
	{
		return limit;
	}

	public void setLimit(Integer limit)
	{
		this.limit = limit;
	}

	public String getAdditionalTime()
	{
		return additionalTime;
	}

	public void setAdditionalTime(String additionalTime)
	{
		this.additionalTime = additionalTime;
	}

}
